ath79: convert ath10k calibration data to NVMEM (ASCII MAC)
[openwrt/staging/dangole.git] / target / linux / ath79 / dts / ar1022_sitecom_wlr-7100.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "Sitecom WLR-7100 (X7 AC1200)";
10 compatible = "sitecom,wlr-7100", "qca,ar9344";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 keys {
20 compatible = "gpio-keys";
21
22 wlan2g {
23 label = "2.4GHz";
24 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
26 };
27
28 wlan5g {
29 label = "5GHz";
30 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_WPS_BUTTON>;
32 };
33 };
34
35 leds {
36 compatible = "gpio-leds";
37
38 ops {
39 label = "white:ops";
40 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
41 };
42
43 led_power: power {
44 label = "amber:power";
45 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
46 default-state = "on";
47 };
48
49 wlan2g {
50 label = "blue:wlan2g";
51 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy1tpt";
53 };
54 };
55 };
56
57 &eth0 {
58 status = "okay";
59
60 pll-data = <0x06000000 0x00000101 0x00001616>;
61
62 phy-mode = "rgmii";
63 phy-handle = <&phy0>;
64
65 gmac-config {
66 device = <&gmac>;
67 rgmii-gmac0 = <1>;
68 rxdv-delay = <3>;
69 rxd-delay = <3>;
70 };
71 };
72
73 &mdio0 {
74 status = "okay";
75
76 phy0: ethernet-phy@0 {
77 reg = <0>;
78 phy-mode = "rgmii";
79
80 qca,ar8327-initvals = <
81 0x04 0x87a00000 /* PORT0 PAD Mode */
82 0x0c 0x01000000 /* PORT6 PAD Mode */
83 0x10 0x80000000 /* PWS_REG_VALUE */
84 0x7c 0x000000fe /* PORT0_STATUS */
85 0x94 0x000000fe /* PORT6_STATUS */
86 >;
87 };
88 };
89
90 &pcie {
91 status = "okay";
92
93 wifi@0,0 {
94 compatible = "qcom,ath10k";
95 reg = <0x0000 0 0 0 0>;
96 nvmem-cells = <&cal_art_5000>;
97 nvmem-cell-names = "calibration";
98 };
99 };
100
101 &ref {
102 clock-frequency = <25000000>;
103 };
104
105 &spi {
106 status = "okay";
107
108 flash@0 {
109 compatible = "jedec,spi-nor";
110 reg = <0>;
111 spi-max-frequency = <25000000>;
112
113 partitions {
114 compatible = "fixed-partitions";
115 #address-cells = <1>;
116 #size-cells = <1>;
117
118 partition@0 {
119 label = "u-boot";
120 reg = <0x000000 0x030000>;
121 read-only;
122 };
123
124 uenv: partition@30000 {
125 label = "u-boot-env";
126 reg = <0x030000 0x010000>;
127 read-only;
128 };
129
130 partition@40000 {
131 compatible = "denx,uimage";
132 label = "firmware";
133 reg = <0x040000 0x750000>;
134 };
135
136 partition@790000 {
137 label = "backup";
138 reg = <0x790000 0x010000>;
139 read-only;
140 };
141
142 partition@7a0000 {
143 label = "storage";
144 reg = <0x7a0000 0x050000>;
145 read-only;
146 };
147
148 art: partition@7f0000 {
149 label = "art";
150 reg = <0x7f0000 0x010000>;
151 read-only;
152
153 nvmem-layout {
154 compatible = "fixed-layout";
155 #address-cells = <1>;
156 #size-cells = <1>;
157
158 cal_art_5000: calibration@5000 {
159 reg = <0x5000 0x844>;
160 };
161 };
162 };
163 };
164 };
165 };
166
167 &usb {
168 status = "okay";
169 };
170
171 &usb_phy {
172 status = "okay";
173 };
174
175 &wmac {
176 status = "okay";
177
178 qca,no-eeprom;
179 };